Hi Dave,
The KFLOP motion parameters which are used for Rapids can actually be set a few different ways. So they can be changed from the application (Script commands), but it is usually easiest to configure KFLOP with a C program.
The ReadSetupFile can be used to allow the User to specify his default startup Interpreter Settings. It is probably easiest to look at the source code to see what is available. See read_setup_file(). It is used by the Interpreter and does not affect the coordinated motion libraries.
The Geometric Correction File is not required. If the Filename is empty no corrections will be performed.
HTH Regards TK
Group: DynoMotion |
Message: 8302 |
From: daves3891 |
Date: 9/10/2013 |
Subject: Re: Interperter Setup File Question |
Thanks Tom, I looked at the function and it makes sense now.
I have another question about the serviceKFLOPcommands function
What is this function reading commands from and sending to? I see a lot of things like:
PC_COMM_SINGLE_STEP PC_COMM_SET_FRO_INC PC_COMM_SET_X PC_COMM_MDI
Is this reading from the GUI to the KFLOP? What data is getting passed? I am not really sure of the purpose of this function.
Thanks Dave
--- In dynomotion@yahoogroups.com, <tk@...> wrote:
Hi Dave,
The KFLOP motion parameters which are used for Rapids can actually be set a few different ways. So they can be changed from the application (Script commands), but it is usually easiest to configure KFLOP with a C program.
The ReadSetupFile can be used to allow the User to specify his default startup Interpreter Settings. It is probably easiest to look at the source code to see what is available. See read_setup_file(). It is used by the Interpreter and does not affect the coordinated motion libraries.
The Geometric Correction File is not required. If the Filename is empty no corrections will be performed.
HTH Regards TK
From: "fahque99@..." <fahque99@...> To:
DynoMotion@yahoogroups.com Sent: Monday, September 9, 2013 2:47 PM Subject: [DynoMotion] Interperter Setup File Question
I am working on a basic CNC application for the kflop and I had some questions on the setup of the system.
I understand that I have to first set the parameters for the 2 types of motion (one with a c program and one with the application) but I am not sure what is required (if at all) with the Interpreter->ReadSetupFile()
What is in this setup file and is it required to run coordinated motion? Also is the kinematics geo file required too?
Any info would be appreciated
Thanks Dave
|
|
Group: DynoMotion |
Message: 8304 |
From: Tom Kerekes |
Date: 9/10/2013 |
Subject: Re: Interperter Setup File Question |
Hi Dave, These are message codes that KFLOP sends to KMotionCNC to have KMotionCNC do something. The Header file PC-DSP.h defines the message codes and describes what (if any) parameters and data is passed along with the message to KMotionCNC and what (if any) data is returned to KFLOP.
The communication mechanism is that there are a few persist.UserData variables that are constantly uploaded to KMotionCNC along with all the other Bulk Status. KMotionCNC is constantly requesting in a Windows Timer Function the Bulk Status to update DROs and so forth. If it detects a command request it performs the requested operation. Search the
source code for PC_COMM_SINGLE_STEP to see how it is done.
If you are not using KMotionCNC and creating your own application you will need to copy this functionality into your application or create any new functionality that you need.
HTH Regards TK
Group: DynoMotion |
Message: 8305 |
From: daves3891 |
Date: 9/10/2013 |
Subject: Re: Interperter Setup File Question |
Thanks Tom, I am still confused on what situation I would need to use these messages. Are they used to interface external button presses to the GUI? Eg: pressing a external single block push button would send the PC_COMM_SINGLE_STEP signal to the GUI and then do something? Dave --- In dynomotion@yahoogroups.com, <tk@...> wrote:
Hi Dave, These are message codes that KFLOP sends to KMotionCNC to have KMotionCNC do something. The Header file PC-DSP.h defines the message codes and describes what (if any) parameters and data is passed along with the message to KMotionCNC and what (if any) data is returned to KFLOP.
The communication mechanism is that there are a few persist.UserData variables that are constantly uploaded to KMotionCNC along with all the other Bulk Status. KMotionCNC is constantly requesting in a Windows Timer Function the Bulk Status to update DROs and so forth. If it detects a command request it performs the requested operation. Search the
source code for PC_COMM_SINGLE_STEP to see how it is done.
If you are not using KMotionCNC and creating your own application you will need to copy this functionality into your application or create any new functionality that you need.
HTH Regards TK
From: "fahque99@..." <fahque99@...> To: DynoMotion@yahoogroups.com Sent: Tuesday, September 10, 2013 7:29 AM Subject: [DynoMotion] RE: Interperter Setup File Question
Thanks Tom, I looked at the function and it makes sense now.
I have another question about the serviceKFLOPcommands function
What is this function reading commands from and sending to? I see a lot of things like:
PC_COMM_SINGLE_STEP PC_COMM_SET_FRO_INC PC_COMM_SET_X PC_COMM_MDI
Is this reading from the GUI to the KFLOP? What data is getting passed? I am not really sure of the purpose of this function.
Thanks Dave
--- In dynomotion@yahoogroups.com, <tk@...> wrote:
Hi Dave,
The KFLOP motion parameters which are used for Rapids can actually be set a few different ways. So they can be changed from the application (Script commands), but it is usually easiest to configure KFLOP with a C program.
The ReadSetupFile can be used to allow the User to specify his default startup Interpreter Settings. It is probably easiest to look at the source code to see what is available. See read_setup_file(). It is used by the Interpreter and does not affect the coordinated motion libraries.
The Geometric Correction File is not required. If the Filename is empty no corrections will be performed.
HTH Regards TK
From: "fahque99@..." <fahque99@...> To:
DynoMotion@yahoogroups.com Sent: Monday, September 9, 2013 2:47 PM Subject: [DynoMotion] Interperter Setup File Question
I am working on a basic CNC application for the kflop and I had some questions on the setup of the system.
I understand that I have to first set the parameters for the 2 types of motion (one with a c program and one with the application) but I am not sure what is required (if at all) with the Interpreter->ReadSetupFile()
What is in this setup file and is it required to run coordinated motion? Also is the kinematics geo file required too?
Any info would be appreciated
Thanks Dave
|
|
Group: DynoMotion |
Message: 8306 |
From: Tom Kerekes |
Date: 9/10/2013 |
Subject: Re: Interperter Setup File Question |
Hi Dave,
Yes. That is one common usage.
We just released a Test Version yesterday with some examples of how KFLOP can update the Tool Table or Fixture Offset
Table using these commands. A User was asking for a Custom User Button in KMotionCNC to Set Tool Lengths and Fixture Offsets in a somewhat special manner. The ability to do this from a KFLOP User C Program adds a lot of flexibility. You have control over the calculations and something like an automatic probe or touch off might be added. The program might be invoked in various ways: Custom Button, External Button, GCode etc...
HTH Regards TK
Group: DynoMotion |
Message: 8307 |
From: daves3891 |
Date: 9/10/2013 |
Subject: Re: Interperter Setup File Question |
Thanks Tom, That makes sense now. Is it safe to leave out the function that listens for these messages if they are not going to be used? Or are they something that should be required? Dave --- In dynomotion@yahoogroups.com, <tk@...> wrote:
Hi Dave,
Yes. That is one common usage.
We just released a Test Version yesterday with some examples of how KFLOP can update the Tool Table or Fixture Offset
Table using these commands. A User was asking for a Custom User Button in KMotionCNC to Set Tool Lengths and Fixture Offsets in a somewhat special manner. The ability to do this from a KFLOP User C Program adds a lot of flexibility. You have control over the calculations and something like an automatic probe or touch off might be added. The program might be invoked in various ways: Custom Button, External Button, GCode etc...
HTH Regards TK
From: "fahque99@..." <fahque99@...> To: DynoMotion@yahoogroups.com Sent: Tuesday, September 10, 2013 12:06 PM Subject: [DynoMotion] RE: Interperter Setup File
Question
Thanks Tom,
I am still confused on what situation I would need to use these messages. Are they used to interface external button presses to the GUI? Eg: pressing a external single block push button would send the PC_COMM_SINGLE_STEP signal to the GUI and then do something?
Dave
--- In dynomotion@yahoogroups.com, <tk@...> wrote:
Hi Dave, These are message codes that KFLOP sends to KMotionCNC to have KMotionCNC do something. The Header file PC-DSP.h defines the message codes and describes what (if any) parameters and data is passed along with the message to KMotionCNC and what (if any) data is returned to KFLOP.
The communication mechanism is that there are a few persist.UserData variables that are constantly uploaded to KMotionCNC along with all the other Bulk Status. KMotionCNC is constantly requesting in a Windows Timer Function the Bulk Status to update DROs and so forth. If it detects a command request it performs the requested operation. Search the
source code for PC_COMM_SINGLE_STEP to see how it is done.
If you are not using KMotionCNC and creating your own application you will need to copy this functionality into your application or create any new functionality that you need.
HTH Regards TK
From: "fahque99@..." <fahque99@...> To: DynoMotion@yahoogroups.com Sent: Tuesday, September 10, 2013 7:29 AM Subject: [DynoMotion] RE: Interperter Setup File Question
Thanks Tom, I looked at the function and it makes sense now.
I have another question about the serviceKFLOPcommands function
What is this function reading commands from and sending to? I see a lot of things like:
PC_COMM_SINGLE_STEP PC_COMM_SET_FRO_INC PC_COMM_SET_X PC_COMM_MDI
Is this reading from the GUI to the KFLOP? What data is getting passed? I am not really sure of the purpose of this function.
Thanks Dave
--- In dynomotion@yahoogroups.com, <tk@...> wrote:
Hi Dave,
The KFLOP motion parameters which are used for Rapids can actually be set a few different ways. So they can be changed from the application (Script commands), but it is usually easiest to configure KFLOP with a C program.
The ReadSetupFile can be used to allow the User to specify his default startup Interpreter Settings. It is probably easiest to look at the source code to see what is available. See read_setup_file(). It is used by the Interpreter and does not affect the coordinated motion libraries.
The Geometric Correction File is not required. If the Filename is empty no corrections will be performed.
HTH Regards TK
From: "fahque99@..." <fahque99@...> To:
DynoMotion@yahoogroups.com Sent: Monday, September 9, 2013 2:47 PM Subject: [DynoMotion] Interperter Setup File Question
I am working on a basic CNC application for the kflop and I had some questions on the setup of the system.
I understand that I have to first set the parameters for the 2 types of motion (one with a c program and one with the application) but I am not sure what is required (if at all) with the Interpreter->ReadSetupFile()
What is in this setup file and is it required to run coordinated motion? Also is the kinematics geo file required too?
Any info would be appreciated
Thanks Dave
|
|
Group: DynoMotion |
Message: 8309 |
From: Tom Kerekes |
Date: 9/10/2013 |
Subject: Re: Interperter Setup File Question |
Hi Dave, Yes it is ok to leave out the functionality if you never send any messages from KFLOP. Regards TK
| | | | | | | |